﻿using System.Collections.Generic;
using System.Linq;
using DataAccess;
using Models;

namespace Business
{
    public class RestaurentLogic: BaseLogic
    {
        public List<Restaurent> GetRestaurents()
        {
            //List<Restaurent> restaurents = RepositoryContainer.GetRepository<Restaurent>(UnitOfWork).All().ToList()
            return RepositoryContainer.GetRepository<Restaurent>(UnitOfWork).Filter(r => r.Id == 1, "Reviews").ToList();



            // restaurents;
        }
    }
}
